package com.ykq.feign;

import com.ykq.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @program: tui-education
 * @description:
 * @author: 闫克起
 * @create: 2022-04-13 09:34
 *  value:表示调用的微服务名称 这里不能使用逗号。
 **/
@FeignClient(value = "education-system")
public interface UserFeign {

    @PostMapping("/system/api/user/findByUsername")
    public User findByUsername(@RequestParam String username);

}
